const city = {
    namespaced: true,
    state: {
        cityname:"上海",
        cityId:'AREA|dbf46d32-7e76-1196',
        center:{lng: 116.331398, lat: 39.897445},
    },
    mutations: {
      setCenter(state,payload){
        const {longitude:lng,latitude:lat} = payload;
        state.center ={
          lng,lat,
        }
      },
      setCity (state,{label:cityname,value:cityId}){
        console.log(cityId);
        state.cityname = cityname;
        state.cityId = cityId;
      }
    },
    actions: {
    }
  }
  
export default city;